#include<bits/stdc++.h>
using namespace std;
int n,a[100009],r[100009],f[100009],ans;
int main(){
freopen("duel.in","r",stdin);
freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;++i)scanf("%d",&a[i]);
    sort(a+1,a+n+1);
    for(int i=1;i<=n;++i){
        if(r[i]==0){
            for(int j=1,k=0;j<i&&k==0;++j){
                if(f[j]!=1&&r[i]!=1&&a[j]<a[i])f[j]=1,r[i]=1,k=1;
               //break;
            }
        }
    }
    //for(int i=1;i<=n;++i)cout<<f[i]<<' ';
    for(int i=1;i<=n;++i)if(f[i]!=1)ans++;
    cout<<ans;
}
